﻿<UserControl x:Class="Wormhole.UI.Application.Controls.Score"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid>
        <Image Name="imgPlayer" Stretch="Fill" Source="/Wormhole.UI.Application;component/images/theme/player01.png" Margin="0,16,0,4" Opacity="1" HorizontalAlignment="Left" Width="74" Grid.Row="1">
            <Image.BitmapEffect>
                <OuterGlowBitmapEffect GlowColor="White" GlowSize="1" />
            </Image.BitmapEffect>

            <Image.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Glyph Score">
                        <MenuItem Name="glyphIncrease" Header="Increase by 1" Click="glyphIncrease_Click" />
                        <MenuItem Name="glyphDecrease" Header="Decrease by 1" Click="glyphDecrease_Click" />
                        <MenuItem Name="glyphSet" Header="Set Score" Click="glyphSet_Click" />
                    </MenuItem>

                    <MenuItem Header="Experience Score">
                        <MenuItem Name="experienceIncrease" Header="Increase by 1" Click="experienceIncrease_Click" />
                        <MenuItem Name="experienceDecrease" Header="Decrease by 1" Click="experienceDecrease_Click" />
                        <MenuItem Name="experienceSet" Header="Set Score" Click="experienceSet_Click" />
                    </MenuItem>

                    <MenuItem Header="Villian Score">
                        <MenuItem Name="villianIncrease" Header="Increase by 1" Click="villianIncrease_Click" />
                        <MenuItem Name="villianDecrease" Header="Decrease by 1" Click="villianDecrease_Click" />
                        <MenuItem Name="villianSet" Header="Set Score" Click="villianSet_Click" />
                    </MenuItem>

                    <Separator />

                    <MenuItem Name="victorySet" Header="Set Victory Total" Click="victorySet_Click" />
                </ContextMenu>
            </Image.ContextMenu>
        </Image>
        <Image Margin="76,16,0,4" Name="imgScore" Stretch="Fill" Source="/Wormhole.UI.Application;component/images/theme/score01.png" HorizontalAlignment="Left" Width="76" Grid.Row="1" />
        <Rectangle Name="rectangle1" Height="15" VerticalAlignment="Top" HorizontalAlignment="Left" Width="152" Grid.Row="1">
            <Rectangle.Fill>
                <LinearGradientBrush>
                    <GradientStop Color="Black" Offset="0.0" />
                    <GradientStop Color="Green" Offset="1" x:Name="gsTitle" />
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Label Margin="-3,-5,0,0" Name="lblTitle" Foreground="LightGreen" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left" Width="126" Grid.RowSpan="2">Rodney McKay
        </Label>
        <Label HorizontalAlignment="Right" Margin="0,16,0,0" Name="lblGlyphs" Width="43" Foreground="White" Height="27" VerticalAlignment="Top">0/7</Label>
        <Label Foreground="White" Height="27" HorizontalAlignment="Right" Margin="0,39,0,25" Name="lblExperience" Width="43">0/15</Label>
        <Label Foreground="White" Height="27" HorizontalAlignment="Right" Name="lblVillian" VerticalAlignment="Bottom" Width="43">0/15</Label>
        
        <Rectangle Margin="0,16,0,0" Name="recGlyph" Stroke="Transparent" StrokeThickness="0" Height="27" VerticalAlignment="Top" HorizontalAlignment="Right" Width="76" MouseDown="recGlyph_MouseDown" Fill="Transparent" />
        <Rectangle Margin="0,43,0,0" Name="recExperience" Stroke="Transparent" StrokeThickness="0" MouseDown="recExperience_MouseDown" Fill="Transparent" HorizontalAlignment="Right" Width="76" Height="27.352" VerticalAlignment="Top" />
        <Rectangle Margin="0,0,0,3" Name="recVillian" Stroke="Transparent" StrokeThickness="0" MouseDown="recVillian_MouseDown" Fill="Transparent" Height="24" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="76" />
    </Grid>
</UserControl>
